<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        .focus {
            width: 400px;
            height: 150px;
            position: relative;
            margin: 50px auto;
            overflow: hidden;
        }
        
        ul {
            /* 设置ul的总的宽度 */
            /* 伸缩盒子 */
            display: flex;
            position: absolute;
            top: 0px;
            left: 0px;
            list-style: none;
            margin-left: -100%;
        }
        
        li {
            float: left;
        }
        
        img {
            width: 400px;
            height: 150px;
        }
        
        .focus ol {
            position: absolute;
            right: 5px;
            bottom: 5px;
        }
        
        .focus ol li {
            display: inline-block;
            width: 5px;
            height: 5px;
            background-color: #fff;
            list-style: none;
            margin-right: 5px;
            border-radius: 2px;
            transition: all .3s;
        }
        
        .focus ol li.current {
            width: 15px;
        }
    </style>
    <script src="js/index1.js"></script>
</head>

<body>
    <div class="focus">
        <ul>
            <li><img src="images/banner3.jpg" alt=""></li>
            <li><img src="images/banner1.jpg" alt=""></li>
            <li><img src="images/banner2.jpg" alt=""></li>
            <li><img src="images/banner3.jpg" alt=""></li>
            <li><img src="images/banner1.jpg" alt=""></li>
        </ul>
        <ol>
            <li class="current"></li>
            <li></li>
            <li></li>
        </ol>
    </div>
</body>

</html>